# -*- coding: utf-8 -*-
# !/usr/bin/env python
"""
-------------------------------------------------
   File Name：     test
   Description :   
   Author :       lth
   date：          2022/8/5
-------------------------------------------------
   Change Activity:
                   2022/8/5 12:38: create this script
-------------------------------------------------
"""
__author__ = 'lth'

from PIL import Image
import cv2
image1=Image.open("1.png").convert("RGBA")
image2=Image.open("2.png").convert("RGBA")

image_blend=Image.blend(image1,image2,0.4)
r,g,b,a=image2.split()
image4=Image.open("1.png").convert("RGBA")
image1.show()
image4.paste(image_blend,(0,0),a)

image4.show()

